(0) Obligation:

Clauses:

h(X) :- ','(f(X), g(X)).
f(c(0, X1)) :- !.
f(c(X, Y)) :- ','(p(X, P), f(c(P, s(Y)))).
g(c(X2, 0)) :- !.
g(c(X, Y)) :- ','(p(Y, P), g(c(s(X), P))).
p(0, 0).
p(s(X), X).

Query: h(g)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

gA(T59, 0).
gA(T65, s(T70)) :- gA(s(T65), T70).
fB(0, T86).
fB(s(T97), T93) :- fB(T97, s(T93)).
hC(c(0, 0)).
hC(c(0, s(0))).
hC(c(0, s(s(0)))).
hC(c(0, s(s(s(0))))).
hC(c(0, s(s(s(s(0)))))).
hC(c(0, s(s(s(s(s(0))))))).
hC(c(0, s(s(s(s(s(s(0)))))))).
hC(c(0, s(s(s(s(s(s(s(0))))))))).
hC(c(0, s(s(s(s(s(s(s(s(T54)))))))))) :- gA(s(s(s(s(s(s(s(0))))))), T54).
hC(c(s(T81), T77)) :- fB(T81, T77).
hC(c(s(T81), T77)) :- ','(fB(T81, T77), gA(T81, T77)).

Query: hC(g)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
hC_in: (b)
gA_in: (b,b)
fB_in: (b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

HC_IN_G(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_G(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
HC_IN_G(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → GA_IN_GG(s(s(s(s(s(s(s(0))))))), T54)
GA_IN_GG(T65, s(T70)) → U1_GG(T65, T70, gA_in_gg(s(T65), T70))
GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)
HC_IN_G(c(s(T81), T77)) → U4_G(T81, T77, fB_in_gg(T81, T77))
HC_IN_G(c(s(T81), T77)) → FB_IN_GG(T81, T77)
FB_IN_GG(s(T97), T93) → U2_GG(T97, T93, fB_in_gg(T97, s(T93)))
FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))
U4_G(T81, T77, fB_out_gg(T81, T77)) → U5_G(T81, T77, gA_in_gg(T81, T77))
U4_G(T81, T77, fB_out_gg(T81, T77)) → GA_IN_GG(T81, T77)

The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)
HC_IN_G(x1)  =  HC_IN_G(x1)
U3_G(x1, x2)  =  U3_G(x2)
GA_IN_GG(x1, x2)  =  GA_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U4_G(x1, x2, x3)  =  U4_G(x1, x2, x3)
FB_IN_GG(x1, x2)  =  FB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U5_G(x1, x2, x3)  =  U5_G(x3)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

HC_IN_G(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_G(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
HC_IN_G(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → GA_IN_GG(s(s(s(s(s(s(s(0))))))), T54)
GA_IN_GG(T65, s(T70)) → U1_GG(T65, T70, gA_in_gg(s(T65), T70))
GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)
HC_IN_G(c(s(T81), T77)) → U4_G(T81, T77, fB_in_gg(T81, T77))
HC_IN_G(c(s(T81), T77)) → FB_IN_GG(T81, T77)
FB_IN_GG(s(T97), T93) → U2_GG(T97, T93, fB_in_gg(T97, s(T93)))
FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))
U4_G(T81, T77, fB_out_gg(T81, T77)) → U5_G(T81, T77, gA_in_gg(T81, T77))
U4_G(T81, T77, fB_out_gg(T81, T77)) → GA_IN_GG(T81, T77)

The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)
HC_IN_G(x1)  =  HC_IN_G(x1)
U3_G(x1, x2)  =  U3_G(x2)
GA_IN_GG(x1, x2)  =  GA_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U4_G(x1, x2, x3)  =  U4_G(x1, x2, x3)
FB_IN_GG(x1, x2)  =  FB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U5_G(x1, x2, x3)  =  U5_G(x3)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 8 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))

The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)
FB_IN_GG(x1, x2)  =  FB_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • FB_IN_GG(s(T97), T93) → FB_IN_GG(T97, s(T93))
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)

The TRS R consists of the following rules:

hC_in_g(c(0, 0)) → hC_out_g(c(0, 0))
hC_in_g(c(0, s(0))) → hC_out_g(c(0, s(0)))
hC_in_g(c(0, s(s(0)))) → hC_out_g(c(0, s(s(0))))
hC_in_g(c(0, s(s(s(0))))) → hC_out_g(c(0, s(s(s(0)))))
hC_in_g(c(0, s(s(s(s(0)))))) → hC_out_g(c(0, s(s(s(s(0))))))
hC_in_g(c(0, s(s(s(s(s(0))))))) → hC_out_g(c(0, s(s(s(s(s(0)))))))
hC_in_g(c(0, s(s(s(s(s(s(0)))))))) → hC_out_g(c(0, s(s(s(s(s(s(0))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(0))))))))) → hC_out_g(c(0, s(s(s(s(s(s(s(0)))))))))
hC_in_g(c(0, s(s(s(s(s(s(s(s(T54)))))))))) → U3_g(T54, gA_in_gg(s(s(s(s(s(s(s(0))))))), T54))
gA_in_gg(T59, 0) → gA_out_gg(T59, 0)
gA_in_gg(T65, s(T70)) → U1_gg(T65, T70, gA_in_gg(s(T65), T70))
U1_gg(T65, T70, gA_out_gg(s(T65), T70)) → gA_out_gg(T65, s(T70))
U3_g(T54, gA_out_gg(s(s(s(s(s(s(s(0))))))), T54)) → hC_out_g(c(0, s(s(s(s(s(s(s(s(T54))))))))))
hC_in_g(c(s(T81), T77)) → U4_g(T81, T77, fB_in_gg(T81, T77))
fB_in_gg(0, T86) → fB_out_gg(0, T86)
fB_in_gg(s(T97), T93) → U2_gg(T97, T93, fB_in_gg(T97, s(T93)))
U2_gg(T97, T93, fB_out_gg(T97, s(T93))) → fB_out_gg(s(T97), T93)
U4_g(T81, T77, fB_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))
U4_g(T81, T77, fB_out_gg(T81, T77)) → U5_g(T81, T77, gA_in_gg(T81, T77))
U5_g(T81, T77, gA_out_gg(T81, T77)) → hC_out_g(c(s(T81), T77))

The argument filtering Pi contains the following mapping:
hC_in_g(x1)  =  hC_in_g(x1)
c(x1, x2)  =  c(x1, x2)
0  =  0
hC_out_g(x1)  =  hC_out_g
s(x1)  =  s(x1)
U3_g(x1, x2)  =  U3_g(x2)
gA_in_gg(x1, x2)  =  gA_in_gg(x1, x2)
gA_out_gg(x1, x2)  =  gA_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
U4_g(x1, x2, x3)  =  U4_g(x1, x2, x3)
fB_in_gg(x1, x2)  =  fB_in_gg(x1, x2)
fB_out_gg(x1, x2)  =  fB_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U5_g(x1, x2, x3)  =  U5_g(x3)
GA_IN_GG(x1, x2)  =  GA_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • GA_IN_GG(T65, s(T70)) → GA_IN_GG(s(T65), T70)
    The graph contains the following edges 2 > 2

(22) YES